<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="common/include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-3">
				<div class="panel panel-default">
					<div class="panel-heading">组织机构</div>
					<div class="panel-body dept-tree">
						<ul id="deptTree" class="ztree"></ul>
					</div>
				</div>
			</div>
			<div class="col-sm-8">
				<div class="ibox">
					<div class="ibox-body">
						<div class="fixed-table-toolbar">
							<div class="columns pull-left">
								<button shiro:hasPermission="/user/add" type="button" class="btn btn-primary" onclick="add()">
									<i class="fa fa-plus"></i>添加
								</button>
								<button shiro:hasPermission="/user/edit" type="button" class="btn btn-success" onclick="edit()">
									<i class="fa fa-edit"></i>编辑
								</button>
								<button shiro:hasPermission="/user/del" type="button" class="btn btn-danger" onclick="del()">
									<i class="fa fa-trash"></i>删除
								</button>
							</div>
							<div class="columns pull-right">
								<button type="button" class="btn btn-success" onclick="find()">
									<i class="fa fa-search"></i>查询
								</button>
							</div>

							<div class="columns pull-right col-md-2 nopadding">
								<input id="searchName" type="text" class="form-control" placeholder="姓名">
							</div>
						</div>
						<table id="userTable" data-mobile-responsive="true">
						</table>
					</div>
				</div>
			</div>
		</div>

		<!--表格行内按钮权限设置-->
		<div>
			<script type="text/javascript">
				var editFlag = 'hidden';
				var delFlag = 'hidden';
				var resetFlag = 'hidden';
			</script>
		</div>
		<div shiro:hasPermission="/user/edit">
			<script type="text/javascript">
				editFlag = '';
			</script>
		</div>
		<div shiro:hasPermission="/user/del">
			<script type="text/javascript">
				delFlag = '';
			</script>
		</div>
		<div shiro:hasPermission="/user/reset">
			<script type="text/javascript">
				resetFlag = '';
			</script>
		</div>
		<!--表格行内按钮权限设置-->
	</div>
	<div th:include="common/include :: footer"></div>
	<script type="text/javascript" th:src="@{/project/user/user.js}"></script>
</body>
</html>